<template>
  <div class="index-container">
    <!-- <div style="overflow: hidden">
      <div class="floatl">
        <h1 class="ml-1">
          办公流程
          <a-button class="ml-2" size="small" type="primary" @click="jumpEdit">
            编辑
          </a-button>
        </h1>
      </div>
      <div style="line-height: 50px" class="floatr">
        面包屑/ 面包屑 / 面包屑
      </div>
    </div> -->
    <GenerateForm v-if="show" :data="widgetForm"></GenerateForm>
  </div>
</template>

<script>
  import { Getbytype } from '@/api/homepage/api'
  import GenerateForm from '@/mycomponents/customerReport/GenerateForm'
  export default {
    name: 'UserIndex',
    data() {
      return {
        widgetForm: {},
        show: false,
      }
    },
    components: {
      GenerateForm,
    },
    created() {
      Getbytype({ pageType: 2 }).then((res) => {
        if (res.isSuccess) {
          this.widgetForm = JSON.parse(res.content.json)
          this.show = true
        }
      })
    },
 
  }
</script>
